package com.caishi.lkx.user.mapper;



import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.caishi.lkx.user.model.DistributionUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.io.Serializable;
import java.util.List;

@Mapper
public interface DistributionUserMapper extends BaseMapper<DistributionUser> {
    int disabledAgent(@Param("agentId") String agentId, @Param("deleted") Boolean deleted);
    Page<DistributionUser> getDistributionTop(Page<DistributionUser> page);
    List<DistributionUser> getDistributionUserTree(@Param("ids") List<String> ids);
    @Select("select * from distribution_users where id = #{id}")
    DistributionUser selectById(@Param("id") Serializable id);

    List<DistributionUser> getRecursiveUser(String id);
}

